Maine prepares to handle terrorism